package com.shu.driftbook.action;

import com.opensymphony.xwork2.ActionSupport;
import com.shu.driftbook.dao.Book;
import com.shu.driftbook.service.BookService;

public class donate extends ActionSupport{
	private BookService service;
	private Book book;
	public String execute() throws Exception {
		service.save(book);
		return "SUCCESS";
	}	
	public BookService getService() {
		return service;
	}
	public void setService(BookService service) {
		this.service = service;
	}
	public Book getBook() {
		return book;
	}
	public void setBook(Book book) {
		this.book = book;
	}

}
